package com.zuo.mall.service;

import com.zuo.mall.entity.UmsAdmin;
import com.zuo.mall.entity.UmsResource;

import java.util.List;

public interface UmsAdminCacheService {
    /**
     * 删除后台用户缓存
     */
    void delAdmin(Long adminId);

    UmsAdmin getAdmin(String username);

    /**
     * 缓存后台用户信息
     * @param admin
     */
    void setAdmin(UmsAdmin admin);

    /**
     * 获取用户资源
     * @param adminId
     * @return
     */
    List<UmsResource> getReourceList(Long adminId);

    /**
     * 缓存用户资源列表
     * @param adminId
     * @param umsResourceList
     */
    void setResourceList(Long adminId, List<UmsResource> umsResourceList);

}
